package com.ljdemo.lrecorder.application

import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.ljdemo.lrecorder.crash.CrashProjectManager

class MyApp : Application(),Application.ActivityLifecycleCallbacks {
    override fun onActivityCreated(p0: Activity, p1: Bundle?) {

    }

    override fun onActivityStarted(p0: Activity) {

    }

    override fun onActivityResumed(p0: Activity) {

    }

    override fun onActivityPaused(p0: Activity) {

    }

    override fun onActivityStopped(p0: Activity) {

    }

    override fun onActivitySaveInstanceState(p0: Activity, p1: Bundle) {

    }

    override fun onActivityDestroyed(p0: Activity) {

    }

    override fun onCreate() {
        super.onCreate()

        //防止崩溃跳出
        CrashProjectManager.getInstance(this)?.init()
    }
}